import {
	request
} from '@/common/request.js'

// 登录
export function login(data) {
	return request({
		url: `/login`,
		method: 'post',
		data
	})
}
// 获取用户详细信息
export function getInfo() {
  return request({
    url: '/getInfo',
    method: 'get'
  })
}
//首页入口权限
export function getRouters() {
  return request({
    url: '/getRouters',
    method: 'get'
  })
}
// 退出方法
export function logout() {
  return request({
    url: '/logout',
    method: 'post'
  })
}
// 采购订单查询
export function projectList(data) {
  return request({
    url: '/project/project/list',
    method: 'get',
	data
  })
}
// 销售订单查询 // 未开票订单查询 //订单请购查询  //未入库订单查询
export function projectBaseInfoList(data) {
  return request({
    url: '/projectBaseInfo/projectBaseInfo/list',
    method: 'get',
	data
  })
}
// 订单产品查询 // 排产计划查询  // 工序分配查询  //产品发货情况查询 //项目销售记录查询 //项目经费记录查询 //销售信息管理查询
export function goodsSaleList(data) {
  return request({
    url: '/goodsSale/goodsSale/list',
    method: 'get',
	data
  })
}
// 排产任务查询
export function listSalePro(data) {
  return request({
    url: '/goodsSaledoGongxu/goodsSaledoGongxu/listSalePro',
    method: 'get',
	data
  })
}
// 工单任务查询  已完成工单
export function goodsSaledoGongxuUserList(data) {
  return request({
    url: '/goodsSaledoGongxuUser/goodsSaledoGongxuUser/list',
    method: 'get',
	data
  })
}
// 请购技术审核查询 //请购管理查询  //请购采购审核查询
export function lvDoList(data) {
  return request({
    url: '/lvDo/lvDo/list',
    method: 'get',
	data
  })
}
// 请购产品查询
export function goodsSaledoListQinggou(data) {
  return request({
    url: '/goodsSaledo/goodsSaledo/listQinggou',
    method: 'get',
	data
  })
}
// 铁附件拆解查询
export function orderIronRecordList(data) {
  return request({
    url: '/orderIronRecord/orderIronRecord/list',
    method: 'get',
	data
  })
}
// 报工记录查询
export function goodslistAndParent(data) {
  return request({
    url: '/goodsSaledoGongxuUserMoney/goodsSaledoGongxuUserMoney/listAndParent',
    method: 'get',
	data
  })
}
// 销售产品物料查询
export function goodsSaleMaterialList(data) {
  return request({
    url: '/goodsSaleMaterial/goodsSaleMaterial/list',
    method: 'get',
	data
  })
}
// 采购管理查询
export function lvBuyList(data) {
  return request({
    url: '/lvBuy/lvBuy/list',
    method: 'get',
	data
  })
}
// 数据字典批量查询
export function typesBatch(data) {
  return request({
    url: '/system/dict/data/typesBatch',
    method: 'post',
	data
  })
}
// 申请付款单列表
export function listassessStatus(data) {
  return request({
    url: '/payApply/payApply/list',
    method: 'get',
	data
  })
}
// 审计不同意
export function payApplyAudit(data) {
  return request({
    url: '/payApply/payApply/audit',
    method: 'put',
    data
  })
}
// 批量审计
export function payApplyAuditBatch(query) {
  return request({
    url: '/payApply/payApply/auditBatch',
    method: 'POST',
    query
  })
}
// 终审通过
export function payApplyAssess(data) {
  return request({
    url: '/payApply/payApply/assess',
    method: 'put',
	data: data
  })
}
// 批量审核
export function payApplyAssessBatch(query) {
  return request({
    url: '/payApply/payApply/assessBatch',
    method: 'POST',
    query
  })
}
// 发货管理列表
export function lvYifahuoList(data) {
  return request({
    url: '/lvYifahuo/lvYifahuo/list',
    method: 'get',
	data
  })
}
// 发货单审核通过
export function lvYifahuoShenhetongguo(data) {
  return request({
    url: '/lvYifahuo/lvYifahuo/shenhetongguo/' + data,
    method: 'DELETE',
  })
}
// 发货单申请驳回
export function lvYifahuoBohui(data) {
  return request({
    url: '/lvYifahuo/lvYifahuo/bohui',
    method: 'put',
    data
  })
}
// 查询到货记录
export function lvDaohuoList(data) {
  return request({
    url: '/lvDaohuo/lvDaohuo/list',
    method: 'get',
	data
  })
}
// 查询发货记录
export function lvYifahuomingxilList(data) {
  return request({
    url: '/lvYifahuomingxi/lvYifahuomingxi/list',
    method: 'get',
	data
  })
}
// 入库审核列表
export function goodsOrderInList(data) {
  return request({
    url: '/goodsOrderIn/goodsOrderIn/assessList',
    method: 'get',
	data
  })
}
// 入库审核通过
export function goodsOrderInEdit(data) {
  return request({
    url: '/goodsOrderIn/goodsOrderIn/assess',
    method: 'put',
	data
  })
}
// 库存管理列表
export function goodsOrderInListList(data) {
  return request({
    url: '/goodsOrderIn/goodsOrderIn/list',
    method: 'get',
	data
  })
}
// 出入库记录列表
export function lvRukumingxiList(data) {
  return request({
    url: '/lvRukumingxi/lvRukumingxi/list',
    method: 'get',
	data
  })
}
// 产品拆解列表
export function goodsOrderMaterialsList(data) {
  return request({
    url: '/goodsOrderMaterials/goodsOrderMaterials/list',
    method: 'get',
	data
  })
}
// 生产订单列表
export function factoryProduceMainList(data) {
  return request({
    url: '/factoryProduceMain/factoryProduceMain/list',
    method: 'get',
	data
  })
}
// 生产订单明细列表
export function factoryProduceSaleAllList(data) {
  return request({
    url: '/factoryProduceSaleAll/factoryProduceSaleAll/list',
    method: 'get',
	data
  })
}
// 生产订单明细工序列表
export function goodsSaledoGongxuList(data) {
  return request({
    url: '/goodsSaledoGongxu/goodsSaledoGongxu/list',
    method: 'get',
	data
  })
}
// 计件派工
export function addUserTaskPiliang(data) {
  return request({
    url: '/goodsSaledoGongxuUser/goodsSaledoGongxuUser/addUserTaskPiliang',
    method: 'post',
	data
  })
}
// 删除工序
export function goodsSaledoGongxuRemove(data) {
  return request({
    url: '/goodsSaledoGongxu/goodsSaledoGongxu/remove/' + data.id,
    method: 'DELETE',
  })
}
// 订单待排产列表
export function goodsSaledoGongxuListSalePro(data) {
  return request({
    url: '/goodsSaledoGongxu/goodsSaledoGongxu/listSalePro',
    method: 'get',
	data
  })
}
// 订单已排产列表
export function goodsSaledoGongxuListSaleProFinish(data) {
  return request({
    url: '/goodsSaledoGongxu/goodsSaledoGongxu/listSaleProFinish',
    method: 'get',
	data
  })
}
// 未完成工单列表
export function goodsSaledoGongxuUserListHavedo(data) {
  return request({
    url: '/goodsSaledoGongxuUser/goodsSaledoGongxuUser/listHavedo',
    method: 'get',
	data
  })
}
// 报工提交
export function addBaogong(data) {
  return request({
    url: '/goodsSaledoGongxuUserMoney/goodsSaledoGongxuUserMoney/addBaogong',
    method: 'post',
	data
  })
}
// 获取工序列表
export function lnGongxuList(data) {
  return request({
    url: '/lnGongxu/lnGongxu/list',
    method: 'GET',
	data
  })
}
// 产品添加工序
export function addGoodsDoGongxu(data) {
  return request({
    url: '/goodsSaledoGongxu/goodsSaledoGongxu/addGoodsDoGongxu',
    method: 'POST',
	data
  })
}

//查询车间人员列表
export function deptTreeselect(query) {
  return request({
    url: '/system/dept/treeselect',
    method: 'get',
	query
  })
}
// 根据部门查询部门人员列表
export function getUserByDept(data) {
  return request({
    url: '/system/user/getUserByDept',
    method: 'get',
	data
  })
}
// 删除报工
export function removeUpdate(data) {
  return request({
    url: '/goodsSaledoGongxuUserMoney/goodsSaledoGongxuUserMoney/removeUpdate/' + data.id,
    method: 'DELETE',
  })
}
// 查询报工详情
export function goodsSaledoGongxuUserMoneyInfo(data) {
  return request({
    url: '/goodsSaledoGongxuUserMoney/goodsSaledoGongxuUserMoney/' + data.id,
    method: 'get',
  })
}
// 质检
export function editZhijian(data) {
  return request({
    url: '/goodsSaledoGongxuUserMoney/goodsSaledoGongxuUserMoney/editZhijian',
    method: 'put',
	data
  })
}
// 查询报工详细列表
export function listByGongxuId(query) {
  return request({
    url: '/goodsSaledoGongxuUserMoney/goodsSaledoGongxuUserMoney/listByGongxuId',
    method: 'get',
	query
  })
}
// 工单转派
export function addUserTaskZhuanpai(data) {
  return request({
    url: '/goodsSaledoGongxuUser/goodsSaledoGongxuUser/addUserTaskZhuanpai',
    method: 'POST',
	data
  })
}
// 工单修改
export function goodsSaledoGongxuUserEdit(data) {
  return request({
    url: '/goodsSaledoGongxuUser/goodsSaledoGongxuUser/updateCounts',
    method: 'put',
	data
  })
}
// 到货过磅单
export function editGuobangdan(data) {
  return request({
    url: '/lvYifahuo/lvYifahuo/editGuobangdan',
    method: 'put',
	data: data
  })
}
// 上传到货回执
export function daohuohuizhi(data) {
  return request({
    url: '/lvYifahuo/lvYifahuo/daohuohuizhi',
    method: 'put',
	data
  })
}
// 查询报工
export function goodsSaledoGongxuUserId(data) {
  return request({
    url: '/goodsSaledoGongxuUser/goodsSaledoGongxuUser/' + data.id,
    method: 'get',
  })
}
// 到货明细查询
export function lvDaohuoDetail(data) {
  return request({
    url: '/lvDaohuoDetail/lvDaohuoDetail/list',
    method: 'get',
	data
  })
}
// 到货产品
export function lvDaohuoDetailList(data) {
  return request({
    url: '/lvDaohuoDetail/lvDaohuoDetail/list',
    method: 'get',
	data
  })
}
// 上传过磅单
export function lvDaohuoUpdate(data) {
  return request({
    url: '/lvDaohuo/lvDaohuo/edit',
    method: 'put',
	data
  })
}
// 报销列表
export function goodsReimbursementList(query) {
  return request({
    url: '/goodsReimbursement/goodsReimbursement/list',
    method: 'get',
	query
  })
}
// 申请信息
export function goodsReimbursementId(data) {
  return request({
    url: '/goodsReimbursement/goodsReimbursement/' + data.id,
    method: 'get',
	data
  })
}
// 报销明细
export function goodsFeeList(data) {
  return request({
    url: '/goodsFee/goodsFee/list',
    method: 'get',
	data
  })
}
// 报销审核
export function goodsReimbursementEdit(data) {
  return request({
    url: '/goodsReimbursement/goodsReimbursement/edit',
    method: 'put',
	data
  })
}
// 发放记录
export function goodsReimbursementDetailList(data) {
  return request({
    url: '/goodsReimbursementDetail/goodsReimbursementDetail/list',
    method: 'get',
	data
  })
}
// 删除发放记录
export function goodsReimbursementDetailDelete(data) {
  return request({
    url: '/goodsReimbursementDetail/goodsReimbursementDetail/' + data.id,
    method: 'DELETE',
  })
}
// 新增发放记录
export function goodsReimbursementDetailAdd(data) {
  return request({
    url: '/goodsReimbursementDetail/goodsReimbursementDetail/add',
    method: 'POST',
	data
  })
}
